import request from '@/utils/request'
export async  function getBannerList(params){
	return  await request({
		url:`/api/system/banner/${params.current}/${params.size}`,
		method:'GET',
	})
}
export async  function bannerSave(banner){
	return  await request({
		url:`/api/system/banner/`,
		method:'post',
    data:banner
	})
}
export async  function bannerDelete(id){
	return  await request({
		url:`/api/system/banner/${id}`,
		method:'delete',
	})
}

export async  function bannerEdit(data){
	return  await request({
		url:`/api/system/banner/`,
		method:'put',
		data
	})
}